// 康养旅居
import http from '../utils/http.js';

/**
 * 获取所有户型和康养旅居图片
 * GET
 * /auth/travel/category/list
*/
export const GetSojournList = (data)=>{
    return http.get('/auth/travel/category/list',data)
}

/**
 * 康养旅居列表
 * GET
 * /auth/travel/list
*/
export const GetTravelList = (data)=>{
    return http.get('/auth/travel/list',data)
}

/**
 * 康养旅居详情
 * GET
 * /auth/travel/detail/{id}
*/
export const GetTravelDetail = (id)=>{
    return http.get(`/auth/travel/detail/${id}`)
}

/**
 * 收藏康养旅居
 * POST
 * /auth/travel/collect/{id}
*/
export const GetTravelCollect = (id)=>{
    return http.post(`/auth/travel/collect/${id}`)
}

/**
 * 康养旅居支付
 * POST
 * /auth/travel/pay
*/
export const GetTravelPay = (data)=>{
    return http.post(`/auth/travel/pay`,data)
}

/**
 * 商户确认预约订单
 * POST
 * /auth/travel/pre
*/
export const GetTravelPre = (data)=>{
    return http.post(`/auth/travel/pre`,data)
}

/**
 * 订单取消退款
 * POST
 * /auth/travel/cancel
*/
export const GetTravelCancel = (data)=>{
    return http.post(`/auth/travel/cancel`,data)
}

/**
 * 旅居订单查询
 * GET
 * /auth/travel/order/list
*/
export const GetSojournOrder = (data)=>{
    return http.get('/auth/travel/order/list',data)
}

/**
 * 详情查询
 * GET
 * /auth/travel/order/detail/{id}
*/
export const GetSojournOrderDetail = (id)=>{
    return http.get(`/auth/travel/order/detail/${id}`)
}